package blockchain

import (
	"net/http"
	"private-domain-overseas-service/admin/business/api/internal/logic/blockchain"
	"private-domain-overseas-service/admin/business/api/internal/svc"
	"private-domain-overseas-service/pkg/result"
)

// 后台钱包余额
func BlockchainWalletBalanceHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
	return func(w http.ResponseWriter, r *http.Request) {
		l := blockchain.NewBlockchainWalletBalanceLogic(r.Context(), svcCtx)
		resp, err := l.BlockchainWalletBalance()

		result.HttpResult(r, w, resp, err)
	}
}
